﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;

namespace LiangHu.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var types  = Assembly.GetExecutingAssembly()
                .GetTypes();
            foreach (var t in types)
            {
                if(t.IsSubclassOf(typeof(AbstractTest)))
                {
                    var instance = (AbstractTest)Activator.CreateInstance(t, false);
                    instance.Test();
                }
            }
            Console.ReadLine();
        }
    }
}
